function AddDataFromNIM() {
  var win = new Ext.Window({
        modal : true,
        height : 0.4 * screen.width,
        width : 1080,
        border : false,
        resizable : false,
        closable : true,
        title : 'Site List',
        layout : 'fit',
        titleAlign : 'center',
        frame : true,
        items: 
            [ 
        	    {
                    xtype: 'gridpanel',
                    region: 'center',
                    titleAlign: 'center',
        	        margin: '5 5 5 5',
        	        selType: 'checkboxmodel',
                    columnLines: true,
                    forceFit: true,
                    store: 'AssetDataMaster.SiteList',
                    columns: [
        	            { dataIndex: 'site_id', text: 'Site ID', align: 'left'},
        	            { dataIndex: 'site_name', text: 'Site Name', align: 'left' },
        	            { dataIndex: 'address', text: 'Address', align: 'left' },
        	            { dataIndex: 'area_description', text: 'Area', align: 'left' },
        	            { dataIndex: 'region_description', text: 'Region', align: 'left' },
        	            { dataIndex: 'nama_prov', text: 'Provinsi', align: 'left' },
        	            { dataIndex: 'nama_kabkot', text: 'Kabupaten', align: 'left' },
        	            { dataIndex: 'nama_kec', text: 'Kecamatan', align: 'left' },
        	            { dataIndex: 'on_air_date', text: 'On Air Date', align: 'left' },
        	            { dataIndex: 'asset_status', text: 'Status', align: 'center' },
        	        ],
        		    listeners: {
        		    	afterrender: function() {
                            Ext.getStore('AssetDataMaster.SiteList').load();    
//                            console.log('zzzzzzzzzzzzzzzzzzzzzz ' + hasPrivilege('NIM.SITE.VIEW'));
                        },
        			    itemdblclick: function(grid, record) {
        			    	    site_id = record.raw.site_id;
                               
        			    	 }
        	        	},
                    dockedItems: 
                    [
                     	{
        	                xtype: 'pagingtoolbar',
        	                dock: 'bottom',
        	                store: 'AssetDataMaster.SiteList',
        	                displayInfo: true
        	            }, 
        	            {
        	                xtype: 'toolbar',
        	                dock: 'top',
        	                height:65,
        	                padding:'5 0 0 0',
	        	            layout : {
	        					type : 'table',
	        					columns : 11
	
	        				},
        	                autoScroll:true,
        	                items: 
                        	[
        	                	
        	                    
        		                {
        		                	xtype: 'combobox',
        		                	id: 'AssetDataAreaadd',
        		                	displayField: 'area_description',
        		                	valueField: 'area_code',
        		                	emptyText       : 'All Area',
        		                	allowBlank : true,
        		                	margin: '0 5 0 5',
        		                	labelWidth: 35,
        		                	width: 155,
        		                	store: 'AssetDataMaster.Area',
        		                	fieldLabel: 'Area',
        		                    listeners: {
        		                    	select: function(obj, newValue, oldValue, eOpts) {
        		                			Ext.getCmp('AssetDataRegional').setValue('');
        		                        	Ext.getStore('AssetDataMaster.Regional').removeAll();
        		                            Ext.getStore('AssetDataMaster.Regional').getProxy().url = './Services/DataMaster/Region/List?area=' + newValue;
        		                            Ext.getStore('AssetDataMaster.Regional').load();
        									Ext.getCmp('AssetDataRegional').setValue('');
        		                        }
        		                    }
        		                },
        		                {	xtype: 'tbseparator' },
        		                {
        		                	xtype: 'combobox',
        		                	id: 'AssetDataRegionaladd',
        		                	displayField: 'region_description',
        		                	emptyText       : 'All Region',
        		                	margin: '0 5 0 5',
        		                	labelWidth: 50,
        		                	width: 210,
        		                	valueField: 'region_code',
        		                	store: 'AssetDataMaster.Regional',
        		                	fieldLabel: 'Regional',
        		                    listeners: {
        		                    	select: function(obj, newValue, oldValue, eOpts) {
        		                            Ext.getStore('AssetDataMaster.Provinsi').load();
        		                        }
        		                    }
        		                },
        		                {	xtype: 'tbseparator' },
        		                {
        		                	xtype: 'combobox',
        		                	id: 'AssetDataProvinsiadd',
        		                	displayField: 'nama_prov',
        		                	emptyText       : 'All Propinsi',
        						 	margin: '0 5 0 5',
        						 	labelWidth: 45,
        						 	width: 200,
        						 	store: 'AssetDataMaster.Provinsi',
        		                	valueField: 'id_prov',
        						 	fieldLabel: 'Provinsi',
        		                    listeners: {
        		                    	select: function(obj, newValue, oldValue, eOpts) {
        		                    	    var id_prof = Ext.getCmp("AssetDataProvinsi").getValue();
        			                    	Ext.getStore('AssetDataMaster.Kabupaten').removeAll();
        		                            Ext.getStore('AssetDataMaster.Kabupaten').getProxy().url = './Services/DataMaster/Kabupaten/List?propinsi=' + id_prof;
        		                            Ext.getStore('AssetDataMaster.Kabupaten').load();

        		                    	}
        		                    }
        		                },
        		                { xtype: 'tbseparator' },
        		                {
        		                	xtype: 'combobox',
        		                	id: 'AssetDataKabupatenadd',
        		                	displayField: 'nama_kabkot',
        		                	emptyText       : 'All Kabupaten',
        		                	margin: '0 5 0 5',
        		                	labelWidth: 55,
        		                	width: 220,
        		                	store: 'AssetDataMaster.Kabupaten',
        		                	fieldLabel: 'Kabupaten',
        		                	valueField: 'id_kabkot'
        		                },
        		                {	xtype: 'tbseparator' },
        		                {
        		                    xtype: 'textfield',
        		                    id: 'AssetDataKeywordadd',
        		                    margin: '0 5 0 5',
        		                    labelWidth: 50,
        		                    fieldLabel: 'Keyword'
        		                },
        		                
        		                {	xtype: 'tbseparator' },
        		                {
        		                    xtype: 'button',
        		                    id: 'AssetDataMasterSearch',
        		                    text: 'Search',
        				    		handler: function() {
        		                	   //OpenTab('widget.addnewsitemaster','addnewsitemaster');
        		                		var keyword = Ext.getCmp('AssetDataKeywordadd').getValue();
        		                		var area = Ext.getCmp('AssetDataAreaadd').getValue();
        		                		var region = Ext.getCmp('AssetDataRegionaladd').getValue();
        		                		var provinsi = Ext.getCmp('AssetDataProvinsiadd').getValue();
        		                		var kabupaten = Ext.getCmp('AssetDataKabupatenadd').getValue();	
        			            		Ext.getStore('AssetDataMaster.SiteList').removeAll();
        			            		Ext.getStore('AssetDataMaster.SiteList').getProxy().url = "./Services/Asset/Site/List?keyword=" + keyword + '&area=' + area + 
        			            				"&region=" + region + "&prop=" + provinsi + "&kabkot=" + kabupaten; 
        			            		Ext.getStore('AssetDataMaster.SiteList').load();
        				    		}
        		                },
        		                {
        		                	xtype : 'button',
        		                	text  : 'ADD SELECTED DATA',
        		                	margin: '5 0 0 5',
        			                handler : function() {
        			                	
        		
        		                       }
        		                },
        		                {	xtype: 'tbseparator' },
        		                {
        		                	xtype : 'button',
        		                	text  : 'ADD ALL DATA',
        		                	margin: '5 0 0 0'
        		                }
        	                ]
        	            }
                    ]
                }
            ]
      }).show();

}


